package com.tulingxueyuan.order.feign;

import com.tulingxueyuan.order.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 添加feign接口和方法
 * @Author li
 * @Date 2025/4/22 14:28
 * name：服务名
 * path：指定rest接口所在的StockController制定的@RequestMapping，如果没有，可以不要
 */
@FeignClient(name = "stock-service", path = "/stock", configuration = FeignConfig.class)
public interface StockFeignService {
    // 声明要调用的rest接口对应的方法
    @RequestMapping("/reduce")
    String reduce();
}
